package backend.majiong;

import java.util.ArrayList;
import java.util.List;

public class HandPai {

    private List<ComboPai> fulu;

    private List<Pai> handPaiOnly;

    private Pai addPai;

    public boolean isMenQing() {
        if (fulu.size() == 0) {
            return true;
        }
        return false;
    }

    public List<Pai> getAllHandPai() {
        List<Pai> list = new ArrayList<Pai>();
        list.addAll(handPaiOnly);
        for (ComboPai flp : fulu) {
            list.addAll(flp.getPaiList());
        }
        list.add(addPai);
        return list;
    }

    public List<ComboPai> getFulu() {
        return fulu;
    }

    public void setFulu(List<ComboPai> fulu) {
        this.fulu = fulu;
    }

    public List<Pai> getHandPaiOnly() {
        return handPaiOnly;
    }

    public void setHandPaiOnly(List<Pai> handPaiOnly) {
        this.handPaiOnly = handPaiOnly;
    }

    public Pai getAddPai() {
        return addPai;
    }

    public void setAddPai(Pai addPai) {
        this.addPai = addPai;
    }

}
